/**
 * Created by WLG on 2018/11/8.
 */
let mongoose = require('mongoose');
let Schema = mongoose.Schema;
/**
 * db 会话
 * @type {Mongoose.Schema}
 */
let ChatSchema = new Schema({
    accountID:  String,
    chatType: String,
    title: String,
    mem: Array,
    creator:String,
    desc: String,
    approval: String,
    allowInvites: String,
    avatar: String,
    memsSha1: String,
    createTime: String,
    updateTime: String,
    status: String,
});
mongoose.model('Chat', ChatSchema);